/**
 * Created by kang on 2016/12/19.
 */
'use strict';

app.controller('GJWelcomeCtrl', ['$scope','$state','Utils',function($scope,$state,Utils) {
     $scope.lists = [{
     	"name":'" 大富翁1 " 挑选 " 牛咔驾到 " 为管家',
     },{
     	"name":'" 大富翁2 " 挑选 " 牛咔驾到 " 为管家',
     },{
     	"name":'" 大富翁3 " 挑选 " 牛咔驾到 " 为管家',
     },{
     	"name":'" 大富翁4 " 挑选 " 牛咔驾到 " 为管家',
     },{
     	"name":'" 大富翁5 " 挑选 " 牛咔驾到 " 为管家',
     },{
     	"name":'" 大富翁6 " 挑选 " 牛咔驾到 " 为管家',
     },{
     	"name":'" 大富翁7 " 挑选 " 牛咔驾到 " 为管家',
     }];
     
     
     $scope.leftClick = function(){
     	var tabs =document.getElementsByTagName('ion-tabs');
        angular.element(tabs).addClass("tabs-item-hide");
     	$state.go("tab.tg-list");
     }
     $scope.rightClick = function(){
     	var tabs =document.getElementsByTagName('ion-tabs');
        angular.element(tabs).addClass("tabs-item-hide");
     	$state.go("tab.tg-publish");
     }
     
     $scope.$on('$ionicView.afterEnter', function() {
        var tabs =document.getElementsByTagName('ion-tabs');
        angular.element(tabs).removeClass("tabs-item-hide");
      
    });
    
    
}]);
